package com.yang.controller.wx;

import com.yang.bean.MarketBrand;
import com.yang.bean.common.BaseRespVo;
import com.yang.bean.common.CommonData;
import com.yang.service.wx.WXBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName WXBrandController
 * @Description:
 * @Author TrueEnd
 * @Date 2022/9/11
 * @Version
 **/
@RestController
@RequestMapping("wx/brand")
public class WXBrandController {

    @Autowired
    WXBrandService wxBrandService;
    @RequestMapping("list")
    public BaseRespVo brandList(Integer page,Integer limit) {

        CommonData<MarketBrand> data = wxBrandService.brandList(page, limit);

        return BaseRespVo.ok(data);
    }

    @RequestMapping("detail")
    public BaseRespVo brandDetail(Integer id) {

        MarketBrand data = wxBrandService.brandDetail(id);

        return BaseRespVo.ok(data);
    }


}
